import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
// https://vitejs.dev/config/

const getRootPath = () => {
    return path.resolve(process.cwd())
}
const getSrcPath = (srcName = 'src') => {
    return path.resolve(getRootPath(), srcName)
}
export default defineConfig({
    plugins: [vue()],
    resolve: {
        alias: {
            '@': getSrcPath(),
            '~': getRootPath()
        }
    },
})
